﻿using System.IO;
using System.Reflection;

namespace Game.Toolkit.Internal
{
    static class GameResourceFile
    {
        public static Stream Level1
        {
            get { return GetImage("first.campaign.xml"); }
        }

        public static Stream GetImage(string name)
        {
            string uri =
                @"Game.Toolkit.Resources.Game."
                + name + "";
            Assembly a = Assembly.GetExecutingAssembly();
            Stream stream = a.GetManifestResourceStream(uri);
            return stream;
        }
    }
}
